home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMNSDocument.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  206 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMNSDocument.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMNSDocument_h__
  6. #define __gen_nsIDOMNSDocument_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIBoxObject; /* forward declaration */
  18.  
  19. class nsIDOMLocation; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIDOMNSDocument */
  23. #define NS_IDOMNSDOCUMENT_IID_STR "a6cf90cd-15b3-11d2-932e-00805f8add32"
  24.  
  25. #define NS_IDOMNSDOCUMENT_IID \
  26.   {0xa6cf90cd, 0x15b3, 0x11d2, \
  27.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  28.  
  29. class NS_NO_VTABLE nsIDOMNSDocument : public nsISupports {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMNSDOCUMENT_IID)
  33.  
  34.   /* readonly attribute DOMString characterSet; */
  35.   NS_IMETHOD GetCharacterSet(nsAString & aCharacterSet) = 0;
  36.  
  37.   /* attribute DOMString dir; */
  38.   NS_IMETHOD GetDir(nsAString & aDir) = 0;
  39.   NS_IMETHOD SetDir(const nsAString & aDir) = 0;
  40.  
  41.   /* readonly attribute nsIDOMLocation location; */
  42.   NS_IMETHOD GetLocation(nsIDOMLocation * *aLocation) = 0;
  43.  
  44.   /* attribute DOMString title; */
  45.   NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
  46.   NS_IMETHOD SetTitle(const nsAString & aTitle) = 0;
  47.  
  48.   /* readonly attribute DOMString contentType; */
  49.   NS_IMETHOD GetContentType(nsAString & aContentType) = 0;
  50.  
  51.   /* readonly attribute DOMString lastModified; */
  52.   NS_IMETHOD GetLastModified(nsAString & aLastModified) = 0;
  53.  
  54.   /* readonly attribute DOMString referrer; */
  55.   NS_IMETHOD GetReferrer(nsAString & aReferrer) = 0;
  56.  
  57.   /* nsIBoxObject getBoxObjectFor (in nsIDOMElement elt); */
  58.   NS_IMETHOD GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject **_retval) = 0;
  59.  
  60.   /* void setBoxObjectFor (in nsIDOMElement elt, in nsIBoxObject boxObject); */
  61.   NS_IMETHOD SetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject *boxObject) = 0;
  62.  
  63. };
  64.  
  65. /* Use this macro when declaring classes that implement this interface. */
  66. #define NS_DECL_NSIDOMNSDOCUMENT \
  67.   NS_IMETHOD GetCharacterSet(nsAString & aCharacterSet); \
  68.   NS_IMETHOD GetDir(nsAString & aDir); \
  69.   NS_IMETHOD SetDir(const nsAString & aDir); \
  70.   NS_IMETHOD GetLocation(nsIDOMLocation * *aLocation); \
  71.   NS_IMETHOD GetTitle(nsAString & aTitle); \
  72.   NS_IMETHOD SetTitle(const nsAString & aTitle); \
  73.   NS_IMETHOD GetContentType(nsAString & aContentType); \
  74.   NS_IMETHOD GetLastModified(nsAString & aLastModified); \
  75.   NS_IMETHOD GetReferrer(nsAString & aReferrer); \
  76.   NS_IMETHOD GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject **_retval); \
  77.   NS_IMETHOD SetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject *boxObject); 
  78.  
  79. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  80. #define NS_FORWARD_NSIDOMNSDOCUMENT(_to) \
  81.   NS_IMETHOD GetCharacterSet(nsAString & aCharacterSet) { return _to GetCharacterSet(aCharacterSet); } \
  82.   NS_IMETHOD GetDir(nsAString & aDir) { return _to GetDir(aDir); } \
  83.   NS_IMETHOD SetDir(const nsAString & aDir) { return _to SetDir(aDir); } \
  84.   NS_IMETHOD GetLocation(nsIDOMLocation * *aLocation) { return _to GetLocation(aLocation); } \
  85.   NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
  86.   NS_IMETHOD SetTitle(const nsAString & aTitle) { return _to SetTitle(aTitle); } \
  87.   NS_IMETHOD GetContentType(nsAString & aContentType) { return _to GetContentType(aContentType); } \
  88.   NS_IMETHOD GetLastModified(nsAString & aLastModified) { return _to GetLastModified(aLastModified); } \
  89.   NS_IMETHOD GetReferrer(nsAString & aReferrer) { return _to GetReferrer(aReferrer); } \
  90.   NS_IMETHOD GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject **_retval) { return _to GetBoxObjectFor(elt, _retval); } \
  91.   NS_IMETHOD SetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject *boxObject) { return _to SetBoxObjectFor(elt, boxObject); } 
  92.  
  93. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  94. #define NS_FORWARD_SAFE_NSIDOMNSDOCUMENT(_to) \
  95.   NS_IMETHOD GetCharacterSet(nsAString & aCharacterSet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharacterSet(aCharacterSet); } \
  96.   NS_IMETHOD GetDir(nsAString & aDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDir(aDir); } \
  97.   NS_IMETHOD SetDir(const nsAString & aDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDir(aDir); } \
  98.   NS_IMETHOD GetLocation(nsIDOMLocation * *aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(aLocation); } \
  99.   NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  100.   NS_IMETHOD SetTitle(const nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
  101.   NS_IMETHOD GetContentType(nsAString & aContentType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentType(aContentType); } \
  102.   NS_IMETHOD GetLastModified(nsAString & aLastModified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
  103.   NS_IMETHOD GetReferrer(nsAString & aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrer(aReferrer); } \
  104.   NS_IMETHOD GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoxObjectFor(elt, _retval); } \
  105.   NS_IMETHOD SetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject *boxObject) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBoxObjectFor(elt, boxObject); } 
  106.  
  107. #if 0
  108. /* Use the code below as a template for the implementation class for this interface. */
  109.  
  110. /* Header file */
  111. class nsDOMNSDocument : public nsIDOMNSDocument
  112. {
  113. public:
  114.   NS_DECL_ISUPPORTS
  115.   NS_DECL_NSIDOMNSDOCUMENT
  116.  
  117.   nsDOMNSDocument();
  118.  
  119. private:
  120.   ~nsDOMNSDocument();
  121.  
  122. protected:
  123.   /* additional members */
  124. };
  125.  
  126. /* Implementation file */
  127. NS_IMPL_ISUPPORTS1(nsDOMNSDocument, nsIDOMNSDocument)
  128.  
  129. nsDOMNSDocument::nsDOMNSDocument()
  130. {
  131.   /* member initializers and constructor code */
  132. }
  133.  
  134. nsDOMNSDocument::~nsDOMNSDocument()
  135. {
  136.   /* destructor code */
  137. }
  138.  
  139. /* readonly attribute DOMString characterSet; */
  140. NS_IMETHODIMP nsDOMNSDocument::GetCharacterSet(nsAString & aCharacterSet)
  141. {
  142.     return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144.  
  145. /* attribute DOMString dir; */
  146. NS_IMETHODIMP nsDOMNSDocument::GetDir(nsAString & aDir)
  147. {
  148.     return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150. NS_IMETHODIMP nsDOMNSDocument::SetDir(const nsAString & aDir)
  151. {
  152.     return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154.  
  155. /* readonly attribute nsIDOMLocation location; */
  156. NS_IMETHODIMP nsDOMNSDocument::GetLocation(nsIDOMLocation * *aLocation)
  157. {
  158.     return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160.  
  161. /* attribute DOMString title; */
  162. NS_IMETHODIMP nsDOMNSDocument::GetTitle(nsAString & aTitle)
  163. {
  164.     return NS_ERROR_NOT_IMPLEMENTED;
  165. }
  166. NS_IMETHODIMP nsDOMNSDocument::SetTitle(const nsAString & aTitle)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* readonly attribute DOMString contentType; */
  172. NS_IMETHODIMP nsDOMNSDocument::GetContentType(nsAString & aContentType)
  173. {
  174.     return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176.  
  177. /* readonly attribute DOMString lastModified; */
  178. NS_IMETHODIMP nsDOMNSDocument::GetLastModified(nsAString & aLastModified)
  179. {
  180.     return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182.  
  183. /* readonly attribute DOMString referrer; */
  184. NS_IMETHODIMP nsDOMNSDocument::GetReferrer(nsAString & aReferrer)
  185. {
  186.     return NS_ERROR_NOT_IMPLEMENTED;
  187. }
  188.  
  189. /* nsIBoxObject getBoxObjectFor (in nsIDOMElement elt); */
  190. NS_IMETHODIMP nsDOMNSDocument::GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject **_retval)
  191. {
  192.     return NS_ERROR_NOT_IMPLEMENTED;
  193. }
  194.  
  195. /* void setBoxObjectFor (in nsIDOMElement elt, in nsIBoxObject boxObject); */
  196. NS_IMETHODIMP nsDOMNSDocument::SetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject *boxObject)
  197. {
  198.     return NS_ERROR_NOT_IMPLEMENTED;
  199. }
  200.  
  201. /* End of implementation class template. */
  202. #endif
  203.  
  204.  
  205. #endif /* __gen_nsIDOMNSDocument_h__ */
  206.